import { ref, computed, reactive } from 'vue'
import { defineStore } from 'pinia'
//存储用户登录数据
export const useUser = defineStore('user', () => {

  const userInfo = reactive({
    username:''
  })
  function setUser(data) {
    userInfo.username=data.username
  }

  return { userInfo,setUser}
})
